package com.maila.xiaoaobusiness.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.Switch;
import android.widget.TextView;

import com.maila.xiaoaobusiness.R;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 新建优惠折扣
 * Created by mark on 2017/11/29.
 */

public class NewDisscountActivity extends AppCompatActivity {
    @BindView(R.id.white_return_iv)
    AutoRelativeLayout whiteReturnIv;
    @BindView(R.id.tv_start_date)
    TextView tvStartDate;
    @BindView(R.id.rl_start_date)
    AutoRelativeLayout rlStartDate;
    @BindView(R.id.tv_end_date)
    TextView tvEndDate;
    @BindView(R.id.rl_end_data)
    AutoRelativeLayout rlEndData;
    @BindView(R.id.tv_goods_name)
    TextView tvGoodsName;
    @BindView(R.id.rl_choose_goods)
    AutoRelativeLayout rlChooseGoods;
    @BindView(R.id.tv_money)
    EditText etMoney;
    @BindView(R.id.et_discount)
    EditText etDiscount;
    @BindView(R.id.tv_num)
    EditText etNum;
    @BindView(R.id.tv_rule)
    TextView tvRule;
    @BindView(R.id.sw_agree_rule)
    Switch swAgreeRule;
    @BindView(R.id.btn_save_discount)
    TextView btnSaveDiscount;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_new_disscount);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.white_return_iv, R.id.rl_start_date, R.id.rl_end_data, R.id.rl_choose_goods, R.id.tv_rule, R.id.sw_agree_rule, R.id.btn_save_discount})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.white_return_iv:
                finish();
                break;
            case R.id.rl_start_date:
                break;
            case R.id.rl_end_data:
                break;
            case R.id.rl_choose_goods:
                break;
            case R.id.tv_rule:
                break;
            case R.id.sw_agree_rule:
                break;
            case R.id.btn_save_discount:
                break;
        }
    }
}
